package top.sigetech.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.sigetech.springcloud.entity.Payment;
import top.sigetech.springcloud.vo.CommonResult;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE",fallback = PaymentFallbackService.class)
public interface PaymentHystrixFeignService {

    @GetMapping("/payment/hystrix/ok/{id}")
    public String pay_ok(@PathVariable("id")Integer id);

    @GetMapping("/payment/hystrix/timeout/{id}")
    public String pay_timeout(@PathVariable("id")Integer id);


}
